package com.dmap.admin.service.backgroundv2;

import com.dmap.admin.controller.backgroundv2.param.DeviceTypeParam;
import com.dmap.admin.controller.backgroundv2.param.DeviceTypeSelectParam;
import com.dmap.admin.po.DeviceType;

import java.util.List;

/**
 * \* User: helei
 * \* Date: 27/05/18
 * \* Description:设备类型相关接口
 * \
 */
public interface DeviceTypeService {

    DeviceType insertDeviceType(DeviceTypeParam param);

    boolean updateDeviceType(DeviceTypeParam param);

    /**
     * 验证 Name 或 Number 是否已存在
     *
     * @param typeNumber 设备类型编号
     * @param typeName   设备类型名称
     * @return
     */
    boolean validateNumberOrNameIsExist(String typeNumber, String typeName);

    DeviceType selectById(Long id);

    int countByDeviceTypeSelectParam(DeviceTypeSelectParam param);

    List<DeviceType> selectByDeviceTypeSelectParam(DeviceTypeSelectParam param);

}